package de.stefanocke.roo.wicket.entity;

import static de.stefanocke.roo.wicket.Stereotypes.ENTITY_IDENTIFIABLE;
import static de.stefanocke.roo.wicket.Stereotypes.ENTITY_VERSIONED;

import org.springframework.roo.classpath.details.MethodMetadata;

import de.stefanocke.roo.wicket.MidUtils;
import de.stefanocke.roo.wicket.base.ModelClassAwareItdMetadataBase;
import de.stefanocke.roo.wicket.base.ModelClassAwareMetadataCreationParams;

public class EntityInterfacesMetadata extends ModelClassAwareItdMetadataBase<Void> {
	public static final String[] INTERFACES = new String[] { ENTITY_IDENTIFIABLE, ENTITY_VERSIONED };

	public static final MidUtils midUtils = MidUtils.get(EntityInterfacesMetadata.class);
	
	private MethodMetadata identifierAccessor; 
	private MethodMetadata versionAccessor;

	public EntityInterfacesMetadata(ModelClassAwareMetadataCreationParams<Void> cmcp, MethodMetadata identifierAccessor, MethodMetadata versionAccessor) {
		super(cmcp, new EntityInterfacesItdBuilder());
		this.identifierAccessor = identifierAccessor;
		this.versionAccessor = versionAccessor;
		buildItdTypeDetails();
	}

	public MethodMetadata getIdentifierAccessor() {
		return identifierAccessor;
	}

	public MethodMetadata getVersionAccessor() {
		return versionAccessor;
	}
	
	

}
